var DB = require("../lib/db_mysql").DB;
exports.UserService = function(){
  this.getUserByOpenid = function(openid,cb){
    var db = new DB();
    var sql = "select * from t_user where openid = ? ";
    db.queryMap(sql,[openid],function(err,result){
      return cb(err,result);
    })
  }
}